package com.borrowed.book.config.shiro;

import org.apache.shiro.authc.AuthenticationToken;

public class WeChatToken implements AuthenticationToken {
    private String openId;
    private String sessionKey;

    public WeChatToken(String openId,String sessionKey){
        this.openId=openId;
        this.sessionKey=sessionKey;
    }
    @Override
    public Object getPrincipal() {
        return openId;
    }

    @Override
    public Object getCredentials() {
        return null;
    }


    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public String getSessionKey() {
        return sessionKey;
    }

    public void setSessionKey(String sessionKey) {
        this.sessionKey = sessionKey;
    }
}
